package com.smart.test.proxy;

/**
 * @auther a123
 * @create 2018-08-14 17:49
 * @desc
 */
public class MethodPreformace {

    private long begin;
    private long end;
    private String serviceMethod;

    public MethodPreformace(String serviceMethod) {
        this.serviceMethod = serviceMethod;
        this.begin = System.currentTimeMillis();
    }

    public void printPreformance(){
        end = System.currentTimeMillis();
        System.out.println(this.serviceMethod + " spend time : " + (end - begin));
    }
}
